package com.dd.web.base.controller;

import com.dd.common.entity.CommonResult;
import com.dd.web.base.entity.data.UmsDictType;
import com.dd.web.base.service.UmsDictTypeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/base/dict/type")
@Api(tags = "UmsDictTypeController", description = "字典类型管理")
public class UmsDictTypeController {
    @Autowired
    private UmsDictTypeService dictTypeService;

    @ApiOperation("字典类型列表查询")
    @GetMapping("/list")
    public CommonResult list()
    {
        List<UmsDictType> list = dictTypeService.selectDictTypeAll();
        return CommonResult.success(list);
    }


}
